package com.farecrawler.app.model;

public class FlightInfo {
	
	private String flightDate;
	private String flight;
	private String departureTime;
	private String arrivalTime;
	private String ticketPrice;
	
	public String getFlightDate() {
		return flightDate;
	}
	public void setFlightDate(String flightDate) {
		this.flightDate = flightDate;
	}
	public String getFlight() {
		return flight;
	}
	public void setFlight(String flight) {
		this.flight = flight;
	}
	public String getDepartureTime() {
		return departureTime;
	}
	public void setDepartureTime(String departureTime) {
		this.departureTime = departureTime;
	}
	public String getArrivalTime() {
		return arrivalTime;
	}
	public void setArrivalTime(String arrivalTime) {
		this.arrivalTime = arrivalTime;
	}
	public String getTicketPrice() {
		return ticketPrice;
	}
	public void setTicketPrice(String ticketPrice) {
		this.ticketPrice = ticketPrice;
	}
	
	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("Flight date: ");
		builder.append(this.getFlightDate());
		builder.append("\n");
		builder.append("Flight number: ");
		builder.append(this.getFlight());
		builder.append("\n");
		builder.append("Departure time: ");
		builder.append(this.getDepartureTime());
		builder.append("\n");
		builder.append("Arrival time: ");
		builder.append(this.getArrivalTime());
		builder.append("\n");
		builder.append("Price: ");
		builder.append(this.getTicketPrice());
		return builder.toString();
	}
	

}
